package de.thw.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import de.thw.web.dao.WebsiteDAO;
import de.thw.web.model.Website;
import de.thw.web.service.WebsiteService;

@Service
public class WebsiteServiceImpl extends AbstractServiceImpl<Website> implements
		WebsiteService {

	@Autowired
	private WebsiteDAO daoWebsite;

	// /////////////////////////////////////////////////////////////////////////////

	@Transactional
	public void save(Website object) {
		super.save(object, this.daoWebsite);
	};

	@Transactional
	public Website load(String uid) {
		return super.load(uid, this.daoWebsite);
	};

	@Transactional
	public List<Website> getAll() {
		return super.getAll(this.daoWebsite);
	};

};